package com.design.memento.football;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xiemiao
 * @description
 * @date 2023/08/18
 */
public class Caretaker {
    private List<Memento> mementoList = new ArrayList<>();

    public Caretaker() {
    }

    public void addMemento(Memento memento) {
        mementoList.add(memento);
    }

    public Memento getMemento(int i) {
        return mementoList.get(i);
    }
}
